package com.springboot.transactional.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.springboot.transactional.service.AccountService;



@RestController
@RequestMapping("/account")
public class AccountController {
	private AccountService accountService;
	
	@Autowired
	public void setAccountService(AccountService accountService) {
		this.accountService = accountService;
	}
	
	@RequestMapping(value = "/update", method = RequestMethod.GET)
    public void updateTransfer() {
		accountService.transfer();
    }
	
	
}
